package com.qf.pojo;

import lombok.Data;

import javax.persistence.*;

/**
 * @Author Zhy
 * Date on 2020/10/12  18:06
 * @description
 */
/*
Employee【员工表】查看-超管（老板）新增员工-修改-删除
工号(101),logo,员工姓名,员工性别,员工年龄,出生日期,手机号码,电子邮箱,证件号码,地址,密码,
入职时间,
职位,所属科室(全科-内科-外科-儿科),角色(超管-医生-护士-财务),
属性1,属性2
empId,logo,name,sex,age,birth,phone,email,identityid,address,password,
hiredate,
position,department,role,
attribute1,attribute2
 */
@Entity
@Data
@Table(name = "employee")
public class Employee {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "empid")
    private String empId;  //工号
    private String logo;   //logo
    private String name;    //员工姓名
    private String sex;     //员工性别,
    private Integer age;    //员工年龄
    private String birth;   //出生日期
    private String phone;   //手机号码
    private String email;   //电子邮箱
    private String identityid;  //证件号码
    private String address;     //地址
    private String password;    //密码
    private String hiredate;    //入职时间
    private String position;    //职位
    private String department;  //所属科室
    private String role;        //角色
    private String attribute1;  //属性1
    private String attribute2;  //属性2
    @Column(name = "createtime")
    private String createTime;//创建时间
    @Column(name = "createperson")
    private String createPerson;//创建人员
}
